package models;

import java.util.*;

import javax.persistence.*;

import play.data.validation.Required;
import play.db.jpa.*;

/**
 * RelationNames Entity, Used to create a list of names for the organization
 * 
 * @author Menna Magdy
 */
@Entity
public class RelationNames extends Model {
	/**
	 * the relation name
	 */
	@Required
	public String relationName;
	/**
	 * the relationNames list belongs to only one organization
	 * 
	 * @author Menna Magdy
	 */
	@ManyToOne
	public Organization organization;

	/**
	 * Default constructor
	 * 
	 * @param organization
	 *            the organization of the new relation name
	 * @param relationName
	 *            new name of the relation
	 * @author Menna Magdy           
	 */
	public RelationNames(Organization organization, String relationName) {
		this.organization = organization;
		this.relationName = relationName;
	}
	

}